package com.xunai.saas.example.service.impl;

import com.xunai.saas.example.model.enums.AcupointEnum;
import com.xunai.saas.example.model.param.FindAcupointByParam;
import com.xunai.saas.example.service.AcupointService;
import com.xunai.saas.example.utils.HttpClientUtils;
import org.springframework.stereotype.Service;

@Service
public class AcupointServiceImpl extends HttpClientUtils implements AcupointService {


    @Override
    public String list() {
        return sendGet(AcupointEnum.list.getUrl());
    }

    @Override
    public String findAcupointByParam(FindAcupointByParam findAcupointByParam) {
        return sendPost(AcupointEnum.acupoint.getUrl(),findAcupointByParam);
    }
}
